Constraint Automata and the Complexity of Recursive Subtype Entailment

نویسندگان

  • Fritz Henglein
  • Jakob Rehof
چکیده

We study entailment of structural and nonstructural recursive subtyping constraints. Constraints are formal inequalities between type expressions, interpreted over an ordered set of possibly infinite labeled trees. The nonstructural ordering on trees is the one introduced by Amadio and Cardelli for subtyping with recursive types. The structural ordering compares only trees with common shape. A constraint set entails an inequality if every assignment of meanings (trees) to type expressions that satisfies all the constraints also satisfies the inequality. In this paper we prove that nonstructural subtype entailment is PSPACEhard, both for finite trees (simple types) and infinite trees (recursive types). For the structural ordering we prove that subtype entailment over infinite trees is PSPACE-complete, when the order on trees is generated from a lattice of type constants. Since structural subtype entailment over finite trees has been shown to be coNP-complete these are the first complexity-theoretic separation results that show that, informally, nonstructural subtype entailment is harder than structural entailment, and recursive entailment is harder than nonrecursive entailment. 1 I n t r o d u c t i o n 1.1 C o n s t r a i n t e n t a i l m e n t Notions of entailment for subtype inequality constraints and set inclusion constraints are currently receiving much attention. Recent work in subtyping systems and in set constraints using notions of constraint entailment in the sense of the present paper includes [1, 5, 15, 22, 6, 2, 8, 13]. In subtyping systems, a program is typed under a set of suptyping constraints consisting of inequalities of the form T < T ~, where T and T ~ are type expressions; the constraints express hypotheses about subtype relations which must hold between the types for the program to be well-typed. If C is a constraint set and r is an inequality (such as a subtype inequality or a set inclusion), we say that C entails r written C ~ r if every assignment of meanings to expressions that satisfies all the constraints in C also satisfies r an inequality is satisfied under the assignment, if it is true

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Entailment of Non-structural Subtype Constraints

Entailment of subtype constraints was introduced for constraint simplification in subtype inference systems. Designing an efficient algorithm for subtype entailment turned out to be surprisingly difficult. The situation was clarified by Rehof and Henglein who proved entailment of structural subtype constraints to be coNP-complete for simple types and PSPACE-complete for recursive types. For ent...

متن کامل

Subtype satisfiability and entailment

Subtype constraints were introduced in advanced programming language research for designing subtype systems and program analysis algorithms. Two logical problems arise in this context: subtype satisfiability and subtype entailment. Subtype satisfiability underlies subtype inference; subtype entailment is for simplifying subtyping constraints in the same application. In this thesis, we investiga...

متن کامل

Deciding Entailments in Inductive Separation Logic with Tree Automata

Separation Logic (SL) with inductive definitions is a natural formalism for specifying complex recursive data structures, used in compositional verification of programs manipulating such structures. The key ingredient of any automated verification procedure based on SL is the decidability of the entailment problem. In this work, we reduce the entailment problem for a non-trivial subset of SL de...

متن کامل

Reduction of Computational Complexity in Finite State Automata Explosion of Networked System Diagnosis (RESEARCH NOTE)

This research puts forward rough finite state automata which have been represented by two variants of BDD called ROBDD and ZBDD. The proposed structures have been used in networked system diagnosis and can overcome cominatorial explosion. In implementation the CUDD - Colorado University Decision Diagrams package is used. A mathematical proof for claimed complexity are provided which shows ZBDD ...

متن کامل

The Complexity of Simple Subtyping Systems

The main objective of this thesis is to understand why polymorphic subtype inference systems may be inherently di cult to scale up. This is done through a study of the complexity of type size, constraint simpli cation and constraint entailment in simple subtyping systems. Simpli cation aims at presenting subtyping judgements in irredundant and succinct form. It is a bottleneck problem for scala...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998